home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir35 / 2xcopy.zip / STEP.BAT < prev   
DOS Batch File  |  1994-04-02  |  3KB  |  85 lines

  1. @echo off
  2. goto Start
  3.                               ┌──────────
  4.                               │ STEP.BAT █
  5.                                ▄▄▄▄▄▄▄▄▄▄█
  6.  
  7.                        Sat  04-02-1994  16:30:44
  8.  
  9.                               Version 2.1
  10.  
  11.      USAGE:
  12.  
  13.      STEP FileName       (enter just the batch file name, no Extension)
  14.  
  15.      ──────────────────────────────────────────────────────────────────
  16.  
  17.      The new COMMAND.COM "/Y" switch in DOS Version 6.2 allows you to
  18.      step a batch file.
  19.  
  20.      Each line is printed to the screen and ends in "Y/N[ ]?"
  21.  
  22.      If you press "Y" the batch file steps to the next command, if you
  23.      press "N" it -skips- that command.
  24.  
  25.      You wonder why I needed to made a batch file for one switch? As
  26.      "anyone" can type:
  27.  
  28.      COMMAND /C /Y MYBATCH.BAT
  29.  
  30.      and do this.
  31.  
  32.      Oh Yeh? Well... try that -exact- command and see how many different
  33.      errors you can get before you get the correct syntax; it's not
  34.      crystal clear from reading the help file. See text below from on
  35.      line DOS 6.2 Help...
  36.  
  37.      ──────────────────────────────────────────────────────────────────
  38.      COMMAND.COM
  39.      Starts a new copy of the MS-DOS Command Interpreter.
  40.  
  41.      COMMAND [[drive:]path] [device] [/E:nnnnn] [/P [/MSG]]
  42.         [/Y [/C command | /K command]]
  43.  
  44.      [drive:]path    Specifies the directory containing COMMAND.COM file.
  45.      device          Specifies the device to use for command input and output.
  46.      /E:nnnnn        Sets the initial environment size to nnnnn bytes.
  47.      /P              Makes the new Command Interpreter permanent (can't exit).
  48.      /MSG            Stores all error messages in memory (requires /P).
  49.      /Y              Steps through the batch program specified by /C or /K.
  50.      /C command      Executes the specified command and returns.
  51.      /K command      Executes the specified command and continues running.
  52.  
  53.      The /P and /MSG switches may be used only when COMMAND is started
  54.      by using the SHELL command in the CONFIG.SYS file.
  55.      ──────────────────────────────────────────────────────────────────
  56.  
  57.  
  58.      John De Palma on CompuServe 76076,571
  59.  
  60. :Start
  61. if "%1"=="" goto Help
  62. command/y/k %1.bat
  63. goto End
  64. :Help
  65. cls
  66. echo.
  67. echo.
  68. echo           █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  69. echo           █                 STEP.BAT                   █▒▒
  70. echo           █                                            █▒▒
  71. echo           █    PURPOSE: Single step any batch file     █▒▒
  72. echo           █             with MS-DOS Version 6.2        █▒▒
  73. echo           █                                            █▒▒
  74. echo           █    COMMAND:  STEP MyBatch                  █▒▒
  75. echo           █              (don't need *.BAT)            █▒▒
  76. echo           █                                            █▒▒
  77. echo           █    WARNING:  Leaves you at the DOS         █▒▒
  78. echo           █              prompt, need to type          █▒▒
  79. echo           █              EXIT and press {Enter}        █▒▒
  80. echo           █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▒▒
  81. echo            ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
  82. echo.
  83. pause
  84. :End
  85.